package com.source.lightfowl.basedata.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author: 谢春泳
 * @Description: 角标机
 * @Date: 2020/1/10 11:49
 */
@Entity
@Data
@Table(name = "barcode_machine")
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
public class BarcodeMachine {
    /*
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    @Id
    private int id;

     */
    @Id
    @GenericGenerator(name = "Barcode-Machine-uuid", strategy = "uuid")
    @GeneratedValue(generator = "Barcode-Machine-uuid")
    private String id;
    private String number;
    private String slaughterHouseId;
    private String userId;
    private String stallsId;
    private Double price;
    //private LocalDateTime productDate;
    private String longitude;
    private String latitude;
    private String createBy;
    //private LocalDateTime createDate;

    /*
    8.4修改
     */
    private Date productDate;//出厂日期
    private Date createDate;

    //atodo 4.添加一个销售/租借字段
    private String status; //脚标机状态 0：销售 1：租借



}
